﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using WQDSkin.Forms.Controls;

namespace SHKF.B2C.Mannage.AdminUI.View
{
    /// <summary>
    /// frmB2C.xaml 的交互逻辑
    /// </summary>
    public partial class frmB2C : Page
    {
        public frmB2C()
        {
            InitializeComponent();
        }

        private void tvNav_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs<object> e)
        {
            WQDTreeView control = (WQDTreeView)sender;
            TreeViewItem treeViewItem = (TreeViewItem)control.SelectedItem;
            if (treeViewItem.DataContext != null)
            {
                string uriString = treeViewItem.DataContext.ToString() + ".xaml";
                frame.Navigate(new Uri(uriString, UriKind.Relative));
            }
        }

    }
}
